package com.fulihui.usercore.biz.shard;

import com.fulihui.usercore.dto.TagDTO;
import com.fulihui.usercore.request.user.*;

import java.util.List;

/**
 * 用户业务逻辑管理类
 *
 * @author Willard.Hu on 2016/5/19.
 */
public interface UserManager {

    String register(UserRegisterRequest request);

    String login(UserLoginRequest request);

    boolean checkRegistered(UserCheckRegisteredRequest request);

    void modifyPasswd(UserModifyPasswdRequest request);

    void forgetPasswd(UserForgetPasswdRequest request);

    boolean hasPasswd(String userId);

    void resetTags(String userId, List<TagDTO> tags);

    void setPasswd(UserSetPasswdRequest request);
}
